package mn.idax.exchange.otc.exception;

public class IdaxException extends RuntimeException{

    private Integer code;

    public IdaxException() {
    }

    public IdaxException(String message) {
        super(message);
    }

    public IdaxException(String message, Throwable cause) {
        super(message, cause);
    }

    public IdaxException(Throwable cause) {
        super(cause);
    }

    public IdaxException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public IdaxException(Integer code, String message){
        super(message);
        this.code = code;
    }

    public IdaxException(Integer code){
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }
}
